package com.woniu.smallmedical.mapper;

import com.woniu.smallmedical.entity.OutStorageMessage;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OutStoragemessageMapper {

      //修改采购金额
    void updtemessage(String number, Double purchase, Double retail);

    //分页查所有药
    List<OutStorageMessage> selectAll(@Param("pageIndex") Integer pageIndex,
                                      @Param("pageSize") Integer pageSize);

    //增加药品
    void insertmessages(Integer sid, String number, Date storagedate, String storagepeople, String type, String vendor, Date makedate, String makepeoople, String remark);



    //查询所有条数
    int selectcount();
    //通过单号查订单
    OutStorageMessage selectDan(String number);


    //通过id查对象
    OutStorageMessage selectByid(Integer sid);


    //查询编号
    List<OutStorageMessage> SelctNumberName(String storagepeople, @Param("pageIndex") Integer pageIndex,
                                         @Param("pageSize") Integer pageSize);
}
